package DCBots;

public class PlanGroup {
	Plan[] planList;
	private int nPlan = 0; 
	
	PlanGroup() {
		// Add Plan Here
		// planList[nPlan] = new PlanA(nPlan); (PlanA is inherited from Plan)
		// nPlan++;
		// planList[nPlan] = new PlanB(nPlan); (PlanB is inherited from Plan)
		// nPlan++;
	}
	
	public int getLength() {
		return nPlan;
	}
	
	public Plan getPlan(int id) {
		if (id >= nPlan) {
			id = 0;
			System.out.println("Out of Plan");
		}			
		return planList[id];
	}
	
}
